package com.invengo.module_robot.ui.fragment.guide;

import android.app.Application;

import androidx.annotation.NonNull;

import com.invengo.library_orionstar.ActionEvent;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingCommand;
import me.goldze.mvvmhabit.bus.Messenger;

public class GuideViewModel extends BaseViewModel {
    public GuideViewModel(@NonNull Application application) {
        super(application);
    }

    /**
     * 出口
     */
    public BindingCommand exit = new BindingCommand(()->{
        Messenger.getDefault().send(ActionEvent.opHome(),"OPEARTION_TO_PAGE");
        onDestroy();
        System.exit(0);
    });

}
